<form action="{:sysuri()}" method="post" data-auto="true" data-callable="addRemark" class="layui-form layui-card">
    <div class="layui-card-body padding-left-40 layui-col-space10">

        <div class="layui-col-md12">
            <label class="layui-form-label">{:Lang("类型")}:</label>
            <div class="layui-input-block">

                <select name="type" lay-search class="layui-select" lay-filter="platform">
                    <option value=''>-- {:lang('全部')} --</option>
                    {foreach $remark_type as $key => $name}

                    <option value="{$key}" >{$name|default=''}</option>

                    {/foreach}
                </select>
            </div>
        </div>


        <div class="layui-form-item">
            <label class="layui-form-label">{:Lang("详情")}:</label>
            <div class="layui-input-block" >
                <textarea name="content" placeholder="请输入备注描述" lay-verify="" class="layui-textarea" style="height: 350px;">{$vo.content|default=""}</textarea>
                <p class="help-block"></p >
            </div>
        </div>
    </div>
    <input type="hidden" name="order_id" value="{$order_id}">
    <input type="hidden" name="user_id" value="{$user_id}">
    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit' lay-submit="">保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div>
</form>
<link rel="stylesheet" href="__ROOT__/static/plugs/layui_exts/layCascader.css">
<script>

    function addRemark (a,b,c)
    {

        let data = a.data;
        let html = "<tr><td>"+data['create_at']+"</td><td>"+data['user_name']+"</td><td>"+data['type']+"</td><td>"+data['content']+"</td></tr>";
        $('.remark').find('.remark-list').append(html);
    }
</script>